home *** CD-ROM | disk | FTP | other *** search
/ Aminet 51 / Aminet 51 (2002)(GTI - Schatztruhe)[!][Oct 2002].iso / Aminet / dev / c / minigl.lha / MiniGL / makefile.vbccWOS < prev    next >
Encoding:
Makefile  |  2002-06-15  |  3.0 KB  |  113 lines

  1. #
  2. # $Id: makefile.vbcc68k,v 1.1.1.1 2000/04/07 19:44:48 tfrieden Exp $
  3. #
  4. # $Author: tfrieden $
  5. #
  6. # $Date: 2000/04/07 19:44:48 $
  7. # $Revision: 1.1.1.1 $
  8. #
  9. # Makefile for vbcc AmigaOS/68k by Frank Wille
  10. #
  11. # (C) 1999 by Hyperion Software
  12. # All rights reserved
  13. #
  14. # This file is part of the MiniGL library project
  15. # See the file Licence.txt for more details
  16. #
  17. #
  18.  
  19. INCLUDE = -Iinclude
  20. #OF note: for my (OF) PF() and PUTS() macros
  21.  
  22.  
  23. CFLAGS = -O2 -speed -cpu=603 -maxoptpasses=20 -c99 $(INCLUDE) $(DEBUG)
  24.  
  25. #OF added -lauto for gears powerpc.library/GetSysTimePPC() etc.
  26. LIBS = -lppcmath -lm -lmgl -lextra -lamiga -lauto
  27. LIBNAME = vlibwos:mgl.lib
  28. DIR = Build.ppc
  29. EXENAME = GLTestWOS
  30. EXESRC = src/GLTest.c
  31.  
  32. DEMOS = mtexWOS varrayWOS varray2WOS warpWOS gears_nostat_WOS gearsWOS rasonlyWOS driverinfoWOS GLTestWOS
  33.  
  34. CC=vc +warposdb_warpos
  35. #CC=vc +warposdb_m68k
  36. AR=join as
  37.  
  38. LIBOBJ = $(DIR)/kprintf.o $(DIR)/init.o $(DIR)/glu.o \
  39.     $(DIR)/fog.o $(DIR)/others.o $(DIR)/texture.o \
  40.     $(DIR)/context.o $(DIR)/matrix.o $(DIR)/draw.o \
  41.     $(DIR)/clip.o $(DIR)/buf.o $(DIR)/array.o $(DIR)/aclip.o \
  42.     $(DIR)/elements.o
  43.  
  44. all: $(LIBNAME) $(DEMOS)
  45.  
  46. install:
  47.     copy include/mgl/#?.h vincludewos:mgl/
  48.  
  49. clean:
  50.     delete force quiet $(DIR)/#?.o GLtestWOS
  51.  
  52. lib: $(LIBNAME)
  53.     @echo "Done"
  54.  
  55. $(EXENAME): $(EXESRC) $(LIBNAME)
  56.     $(CC) $(CFLAGS) -o $@ $< $(LIBS)
  57.  
  58. # Implicit rule to build each demo (when the name match)
  59. %WOS : demos/%.c $(LIBNAME)
  60.     $(CC) $(CFLAGS) -o $@ $< $(LIBS)
  61.  
  62. driverinfoWOS: demos/driverinfo.c $(LIBNAME)
  63.     $(CC) $(CFLAGS) -o driverinfoWOS demos/driverinfo.c $(LIBS)
  64.  
  65. warpWOS: demos/warp.c $(LIBNAME)
  66.     $(CC) $(CFLAGS) -o warpWOS demos/warp.c $(LIBS)
  67.  
  68. varrayWOS: demos/varray_new.c $(LIBNAME)
  69.     $(CC) $(CFLAGS) -o varrayWOS demos/varray_new.c $(LIBS)
  70.  
  71. varray2WOS: demos/varray.c $(LIBNAME)
  72.     $(CC) $(CFLAGS) -o varray2WOS demos/varray.c $(LIBS)
  73.  
  74. gearsWOS: demos/gears_stats.c $(LIBNAME)
  75.     $(CC) $(CFLAGS) -o gearsWOS demos/gears_stats.c $(LIBS)
  76.  
  77. gears_nostat_WOS: demos/gears.c $(LIBNAME)
  78.     $(CC) $(CFLAGS) -o gears_nostat_WOS demos/gears.c $(LIBS)
  79.  
  80. mtexWOS: demos/mtex.c $(LIBNAME)
  81.     $(CC) $(CFLAGS) -o mtexWOS demos/mtex.c $(LIBS)
  82.  
  83. rasonlyWOS: demos/rasonly.c $(LIBNAME)
  84.     $(CC) $(CFLAGS) -o rasonlyWOS demos/rasonly.c $(LIBS)
  85.  
  86.  
  87. $(LIBNAME): $(LIBOBJ)
  88.     $(AR) $(LIBNAME) $(LIBOBJ)
  89.  
  90. INCS = src/sysinc.h include/mgl/clip.h include/mgl/config.h \
  91.        include/mgl/context.h include/mgl/gl.h include/mgl/log.h \
  92.        include/mgl/matrix.h include/mgl/minigl.h include/mgl/vertexbuffer.h
  93.  
  94. # MiniGL modules whose names don't match:
  95. $(DIR)/elements.o: src/vertexelements.c $(INCS)
  96.     $(CC) $(CFLAGS) -c -o $@ $<
  97. $(DIR)/array.o: src/vertexarray.c $(INCS)
  98.     $(CC) $(CFLAGS) -c -o $@ $<
  99. $(DIR)/clip.o: src/hclip.c $(INCS)
  100.     $(CC) $(CFLAGS) -c -o $@ $<
  101.  
  102. $(DIR)/buf.o: src/vertexbuffer.c $(INCS)
  103.     $(CC) $(CFLAGS) -c -o $@ $<
  104. $(DIR)/matrix.o: src/matrix.c $(INCS)
  105.     $(CC) $(CFLAGS) -c -o $@ $<
  106. $(DIR)/texture.o: src/texture.c $(INCS)
  107.     $(CC) $(CFLAGS) -c -o $@ $<
  108.  
  109. # Implicit rule to build each module of MiniGL (when the name match)
  110. $(DIR)/%.o : src/%.c $(INCS)
  111.     $(CC) $(CFLAGS) -c -o $@ $<
  112.  
  113.